package cn.iocoder.mall.product.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 商品SPU
 * @Author: jeecg-boot
 * @Date:   2019-11-22
 * @Version: V1.0
 */
@Data
public class CommoditySpuPage {

    /**状态(1上架，2下架)*/
    @Excel(name = "状态(1上架，2下架)", width = 15)
    private Integer visible;
	/**品牌ID*/
  	@Excel(name = "品牌ID", width = 15)
	private String brandId;
	/**副标题*/
  	@Excel(name = "副标题", width = 15)
	private String caption;

    @Excel(name = "类目", width = 15)
    private String categoryId;

    @Excel(name = "类目名称", width = 15)
    private String categoryName;
    /**条目（方便商户管理商品）*/
    private String entryId;
    /**条目名称（方便商户管理商品）*/
    private String entryName;
	/**分类编号*/
  	@Excel(name = "分类编号", width = 15)
	private Integer cid;
	/**创建时间*/
  	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**默认SKU*/
  	@Excel(name = "默认SKU", width = 15)
	private Long defaultItemId;
    /**是否删除*/
    @Excel(name = "是否删除（0;未删除，1：删除）", width = 15)
    private Integer deleted;
	/**描述*/
  	@Excel(name = "描述", width = 15)
	private Object description;
	/**SPU 编号*/
	private Integer id;

	/**是否启用规格*/
  	@Excel(name = "是否启用规格", width = 15)
	private String isEnableSpec;
	/**是否上架*/
  	@Excel(name = "是否上架", width = 15)
	private String isMarketable;
	/**SPU 名字*/
  	@Excel(name = "SPU 名字", width = 15)
	private String name;
	/**商品主图地址
     *
     * 数组，以逗号分隔
     *
     * 建议尺寸：800*800像素，你可以拖拽图片调整顺序，最多上传15张*/
  	@Excel(name = "商品主图地址** 数组，以逗号分隔** 建议尺寸：800*800像素，你可以拖拽图片调整顺序，最多上传15张", width = 15)
	private java.lang.String picUrls;
	/**价格*/
  	@Excel(name = "价格", width = 15)
	private Integer price;
	/**库存数量*/
  	@Excel(name = "库存数量", width = 15)
	private java.lang.Integer quantity;
	/**卖点*/
  	@Excel(name = "卖点", width = 15)
	private java.lang.String sellPoint;
	/**商家ID*/
  	@Excel(name = "商家ID", width = 15)
	private java.lang.String sellerId;
	/**店铺_id*/
  	@Excel(name = "店铺_id", width = 15)
	private java.lang.String shopId;
	/**排序字段*/
  	@Excel(name = "排序字段", width = 15)
	private java.lang.Integer sort;
	/**模板类型ID（待用）*/
  	@Excel(name = "模板类型ID（待用）", width = 15)
	private java.lang.String templateTypeId;
	/**审核（0：待审核。1审核通过）*/
  	@Excel(name = "审核（0：待审核。1审核通过）", width = 15)
	private java.lang.String toExamine;
	/**最后更新时间*/
	private java.util.Date updateTime;
	@ExcelCollection(name="商品SKU")
	private List<CommoditySku> productSkuList;
	
}
